//package org.ricks.bootstrap;
//
//import org.ricks.boot.ServerBootstrap;
//import org.ricks.bootstrap.controller.BootController;
//import org.ricks.net.http.HttpBootstrap;
//import org.ricks.net.http.RestfulHandler;
//
///**
// * @Author ricks [chenwei]
// * @Version [v1.0]
// * @CreateTime 2024-08-20   16:21
// * @Description TODO
// */
//public class GatewayServerBootstarap implements ServerBootstrap {
//
//    @Override
//    public void start() {
//        RestfulHandler restfulHandler = new RestfulHandler();
//        restfulHandler.addController(BootController.class);
//        HttpBootstrap bootstrap = new HttpBootstrap().setPort(9000);
//        bootstrap.httpHandler(restfulHandler);
//        bootstrap.configuration()
//                .threadNum(Runtime.getRuntime().availableProcessors())
//                .readBufferSize(1024 * 4)
//                .writeBufferSize(1024 * 4)
//                .readMemoryPool(16384 * 1024 * 4)
//                .writeMemoryPool(10 * 1024 * 1024 * Runtime.getRuntime().availableProcessors(), Runtime.getRuntime().availableProcessors()).debug(false);
//        bootstrap.start();
//    }
//
//    @Override
//    public void stop() {
//
//    }
//}
